package org.tea.inventory.dao.tea;

import org.tea.inventory.domain.tea.WarehouseInventory;

import java.util.List;

/**
 * 仓库库存Mapper接口
 * 
 * @author dongxb
 * @date 2025-04-16
 */
public interface WarehouseInventoryMapper 
{
    /**
     * 查询仓库库存
     * 
     * @param id 仓库库存主键
     * @return 仓库库存
     */
    public WarehouseInventory selectWarehouseInventoryById(Long id);

    /**
     * 查询仓库库存列表
     * 
     * @param warehouseInventory 仓库库存
     * @return 仓库库存集合
     */
    public List<WarehouseInventory> selectWarehouseInventoryList(WarehouseInventory warehouseInventory);

    /**
     * 查询仓库库存列表
     *
     * @param warehouseInventory 仓库库存
     * @return 仓库库存集合
     */
    public List<WarehouseInventory> selectWarehouseInventoryListByName(WarehouseInventory warehouseInventory);

    /**
     * 新增仓库库存
     * 
     * @param warehouseInventory 仓库库存
     * @return 结果
     */
    public int insertWarehouseInventory(WarehouseInventory warehouseInventory);

    /**
     * 修改仓库库存
     * 
     * @param warehouseInventory 仓库库存
     * @return 结果
     */
    public int updateWarehouseInventory(WarehouseInventory warehouseInventory);

    /**
     * 删除仓库库存
     * 
     * @param id 仓库库存主键
     * @return 结果
     */
    public int deleteWarehouseInventoryById(Long id);

    /**
     * 批量删除仓库库存
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWarehouseInventoryByIds(Long[] ids);

    public WarehouseInventory getInventory(Long warehouseId, Long productId);

    int batchInsertWarehouseInventory(List<WarehouseInventory> list);

}
